function changeList(obj) {
	var items = obj.parentNode.getElementsByTagName("ul");
	if(obj.className == "folden") {
		obj.className = "";
		items[0].style.display = "block";
	}else {
		obj.className = "folden";
		items[0].style.display = "none";
	}
}

function changeItem(obj) {
	var allItems = document.getElementById("admin_left").getElementsByTagName("li");
	for(var i=0; i<allItems.length; i++){
		allItems[i].className = "";
	}
	obj.className = "selected";
}

function changeSubmenu() {
	var adminLeft = document.getElementById("admin_left");
	var separator = document.getElementById("separator");
	var adminRight = document.getElementById("admin_right");
	if(adminLeft.className == "folden") {
		adminLeft.className = "";
		separator.className = "";
		adminRight.className = "";
	} else {
		adminLeft.className = "folden";
		separator.className = "folden";
		adminRight.className = "folden";
	}
}